package com.smart.manager.pop.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import com.smart.manager.pop.entities.assembler.PosterElement;
import io.ebean.annotation.DbJson;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import java.util.List;


/**
 * 海报资料
 *
 * @author Administrator
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
public class PopBasicPoster extends BaseLongModel {

    @ApiModelProperty(value = "海报标题")
    private String title;


    @ApiModelProperty(value = "存储网络路径")
    private String httpUrl;



    @ApiModelProperty(value = "海报图片宽度")
    private Integer width;

    @ApiModelProperty(value = "海报图片高度")
    private Integer height;



    @ApiModelProperty(value = "海报元素列表")
    @DbJson
    private List<PosterElement> elements;


    @ApiModelProperty(value = "海报制作次数")
    private Integer makeCount ;
}
